
import { serve } from "https://deno.land/std@0.190.0/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for (const req of s) {
  req.respond({ body: "Hello World\n" });
}



/*** 
const filenames = Deno.args;
for (const filename of filenames) {
  const file = await Deno.open(filename);
  await Deno.copy(file, Deno.stdout);
  file.close();
}


// 创建子进程
const p = Deno.run({
    cmd: ["echo", "hello~~~~~~woeiradl"],
  });
  
  // 等待完成
  await p.status();
*/